package com.software.car.common.exception;

import com.software.car.common.enums.ResultEnum;

/**
 * @Description
 *
 * 基本的异常类
 *
 * @Author 魔法はまだ解けない
 * @Date 2021/1/17
 */
public class BaseException extends RuntimeException {

    ResultEnum exceptionEnum;

    public BaseException(ResultEnum exceptionEnum) {
        super(exceptionEnum.getMsg());
        this.exceptionEnum=exceptionEnum;
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }

    public ResultEnum getExceptionEnum() {
        return exceptionEnum;
    }
}
